package Prototype_mode.office;

import java.io.*;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Office implements Serializable {
    private String Date;

    public Office(){
        this.Date="344";
    }
    public void setDate(String date) {
        Date = date;
    }

    public String getDate() {
        return Date;
    }
    public Office deepClone() throws IOException,ClassNotFoundException, OptionalDataException {
        ByteArrayOutputStream bao=new ByteArrayOutputStream();
        ObjectOutputStream oos=new ObjectOutputStream(bao);
        oos.writeObject(this);
        ByteArrayInputStream bis=new ByteArrayInputStream(bao.toByteArray());
        ObjectInputStream ois=new ObjectInputStream(bis);
        return (Office) ois.readObject();
    }
}
